package adv8;

/**
 * @author oldliu
 * @since 1.0
 */
public class SonRwr {
    public static void main(String[] args) {
        Father s=new Son();
        s.print();//遮罩效应
        System.out.println(">>>>>>>>>>>>");
        System.out.println(s.name);
        System.out.println(">>>>>>>>>>>>");
        Son s2=(Son)s;
        System.out.println(s2.name);
    }
}
